
package com.derbysoft.synxisadapter.commons.dto.synxis;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for BookingRule complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="BookingRule">
 *   &lt;complexContent>
 *     &lt;extension base="{http://www.opentravel.org/OTA/2003/05}DateTimeSpanGroup">
 *       &lt;sequence>
 *         &lt;element name="RestrictionStatus" type="{http://www.opentravel.org/OTA/2003/05}RestrictionStatus" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="LengthsOfStay" type="{http://www.opentravel.org/OTA/2003/05}ArrayOfLengthOfStay" minOccurs="0"/>
 *         &lt;element name="DOW_Restrictions" type="{http://www.opentravel.org/OTA/2003/05}DOW_Restrictions" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="PriceViewable" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       &lt;attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BookingRule", propOrder = {
    "restrictionStatus",
    "lengthsOfStay",
    "dowRestrictions"
})
public class BookingRule
    extends DateTimeSpanGroup
{

    @XmlElement(name = "RestrictionStatus")
    protected List<RestrictionStatus> restrictionStatus;
    @XmlElement(name = "LengthsOfStay")
    protected ArrayOfLengthOfStay lengthsOfStay;
    @XmlElement(name = "DOW_Restrictions")
    protected DOWRestrictions dowRestrictions;
    @XmlAttribute(name = "PriceViewable", required = true)
    protected boolean priceViewable;
    @XmlAttribute(name = "Code")
    protected String code;

    /**
     * Gets the value of the restrictionStatus property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the restrictionStatus property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRestrictionStatus().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RestrictionStatus }
     * 
     * 
     */
    public List<RestrictionStatus> getRestrictionStatus() {
        if (restrictionStatus == null) {
            restrictionStatus = new ArrayList<RestrictionStatus>();
        }
        return this.restrictionStatus;
    }

    /**
     * Gets the value of the lengthsOfStay property.
     * 
     * @return
     *     possible object is
     *     {@link ArrayOfLengthOfStay }
     *     
     */
    public ArrayOfLengthOfStay getLengthsOfStay() {
        return lengthsOfStay;
    }

    /**
     * Sets the value of the lengthsOfStay property.
     * 
     * @param value
     *     allowed object is
     *     {@link ArrayOfLengthOfStay }
     *     
     */
    public void setLengthsOfStay(ArrayOfLengthOfStay value) {
        this.lengthsOfStay = value;
    }

    /**
     * Gets the value of the dowRestrictions property.
     * 
     * @return
     *     possible object is
     *     {@link DOWRestrictions }
     *     
     */
    public DOWRestrictions getDOWRestrictions() {
        return dowRestrictions;
    }

    /**
     * Sets the value of the dowRestrictions property.
     * 
     * @param value
     *     allowed object is
     *     {@link DOWRestrictions }
     *     
     */
    public void setDOWRestrictions(DOWRestrictions value) {
        this.dowRestrictions = value;
    }

    /**
     * Gets the value of the priceViewable property.
     * 
     */
    public boolean isPriceViewable() {
        return priceViewable;
    }

    /**
     * Sets the value of the priceViewable property.
     * 
     */
    public void setPriceViewable(boolean value) {
        this.priceViewable = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

}
